from django.http import HttpResponse
from django.shortcuts import render
from book.models import BookInfo

# Create your views here.
# 拆分链接
'''
# def index(request, view_id, iid):
#     #req = request.GET.get(one)
#     print(view_id, iid)
#     return HttpResponse('喜喜')
'''


def index(request, view_id, iid):
    one = request.GET.getlist('value')
    print(one)
    print(BookInfo.objects.all())
    return HttpResponse("pp")


###############分页练习##############
from django.core.paginator import Paginator

objects = ['join', 'paul', 'george', 'ringo']
p = Paginator(objects, 2)
